import { request } from 'ngfe-request'

// 提现申请列表
export function getWithdrawApplyList(params: object) {
  console.log('提现申请', params);
  return request('/list', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'WithdrawalSVC',
        stdIntfcInd: 'query',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    },
  })
}

// 处理提现申请
export function handleWithdrawApply(params: object) {
  console.log(params);

  return request('/approve', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'WithdrawalSVC',
        stdIntfcInd: 'approve',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    },
  })
}

